<template>
	<view class="pd16_15">
		<block v-for="(item,index) in listData" :key="index">
		<view class="box pd16_15 flex alcenter space" style="margin-bottom: 30upx;">
			<view>
				<view class="ft14 cl-main" v-if="item.type==2">打赏 【订单ID:{{item.orderid}}】</view>
				<view class="ft14 cl-main" v-if="item.type==1">会员 【订单ID:{{item.orderid}}】</view>
				<view class="mt8 ft12 cl-notice">{{$u.timeFormat(item.createtime, 'yyyy-mm-dd hh:MM:ss')}}</view>
				 <view class="mt8">
					<text class="ft12 cl-notice">备注：{{item.desc}} </text>
				</view> 
			</view>
			<view class="cl-main ft18 ftw600">
				{{item.fenxiao}}
			</view>
		</view>
		</block>	
		<uni-load-more :status="status" :content-text="contentText" />
	</view>
</template>

<script>
	import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
	  export default {
		  components: {
		  	uniLoadMore
		  },
		data(){
			return {
			    listData: [],
				last_id: 0,
				reload: true,
				status: 'nomore',
				contentText: {
					contentdown: this.$t('loading.loadmore'),
					contentrefresh: this.$t('loading.loading'),
					contentnomore: this.$t('loading.nomore')
				}
			}
		},
		onReachBottom() {
			this.status = 'nomore';
			this.getList();
		},
		onLoad() {
			this.getList();
		},
		methods:{
			getList() {
				let data = {
					//column: 'id,post_id,title,author_name,cover,published_at' //需要的字段名
				};
		/* 		var limit=10;
				if (this.last_id>0) {
					//说明已有数据，目前处于上拉加载
					this.status = 'loading';
					data.offset = this.last_id*limit;
					data._ = new Date().getTime() + '';
				}
				data.limit=limit		
				 */
				this.$httpas.post2({
					data: {
						do: 'user',
						op: 'fenxiao_list',
					},
					success: res => {
						this.listData = res
					}
				})
				

			},
		}
	}
</script>

<style>
	
</style>